import { createRouter, createWebHashHistory } from 'vue-router'
import routes from '~pages'
// import { setupLayouts } from 'virtual:generated-layouts'
// import generatedRoutes from 'virtual:generated-pages'

// const routes = setupLayouts(generatedRoutes)

export default createRouter({
  history: createWebHashHistory(),
  scrollBehavior () {
    return { top: 0 }
  },
  routes
})
